﻿

using System.Windows.Media;

namespace ZDK
{
    //少量功能代码
    public static class Global
    {
        #region 获取随机颜色 GetRandColor
        static Color[] _sysColors = new Color[] {
            Colors.Coral, Colors.BlueViolet, Colors.BurlyWood, Colors.DarkGray, Colors.Crimson,
            Colors.DarkCyan, Colors.DarkKhaki, Colors.MediumPurple, Colors.MediumAquamarine,
            Colors.OrangeRed, Colors.MediumSeaGreen,Colors.SteelBlue,Colors.LimeGreen
        };
        static int _colorIdx = 0;
        public static Color GetRandColor()
        {
            return _sysColors[_colorIdx++ % _sysColors.Length];
        } 
        #endregion
    }
}
